package sysu.el.array.ints.algors;
import sysu.el.array.ints.functors.Fun2Int;


public class ArrFLInt {
	static public int apply(int arr_num, int[] arr, int init, Fun2Int fun){
		int sum = init;
		for (int i=0; i<arr_num; i++){
			sum = fun.apply(sum, arr[i]);
		}
		return sum;
	}
	

}
